package com.hl.sfzy.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

/**
 * t_sys_announcement
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysAnnouncement implements Serializable {
    /**
     * 公告id
     */
    private Integer id;

    /**
     * 公告名
     */
    private String announcementName;

    /**
     * 公告内容
     */
    private String announcementContent;
    /**
     * 发布时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date announcementPublishtime;

    /**
    * 图片的
    * */
    private String img;

    /**
     * 是否删除：0正常1删除
     */
    private String del;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAnnouncementName() {
        return announcementName;
    }

    public void setAnnouncementName(String announcementName) {
        this.announcementName = announcementName;
    }

    public String getAnnouncementContent() {
        return announcementContent;
    }

    public void setAnnouncementContent(String announcementContent) {
        this.announcementContent = announcementContent;
    }

    public Date getAnnouncementPublishtime() {
        return announcementPublishtime;
    }

    public void setAnnouncementPublishtime(Date announcementPublishtime) {
        this.announcementPublishtime = announcementPublishtime;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getDel() {
        return del;
    }

    public void setDel(String del) {
        this.del = del;
    }

    private static final long serialVersionUID = 1L;
}